
# 递归查找目标文件，用xargs安全传递参数，执行sed替换
find manifests/ roles/ tools/ playbooks/ example/  docs/ \
  -type f \
  \( -name "*.yaml" -o -name "*.yaml.j2" -o -name "*.yml" -o -name "imgutils" -o -name "install.sh.j2" \) \
  -print0 | xargs -0 sed -i \
  's/easzlab\.io\.local:5000\//registry\.ccoe\.tech\/ks\//g'


find manifests/ roles/ tools/ playbooks/ example/ docs/ \
  -type f \
  \( -name "*.yaml" -o -name "*.yaml.j2" -o -name "*.yml" -o -name "imgutils" -o -name "install.sh.j2" \) \
  -print0 | xargs -0 sed -i \
  's/easzlab\.io\.local:5000/registry\.ccoe\.tech\/ks/g'  
  echo "带域名仓库替换完成"